<template>
  <div class="about">
    <h1>This is an about page</h1>
  </div>
</template>
<script lang="ts">
function myFunc(x: number, y: number): number {
  return x + y;
};
console.log(myFunc(1,2));
interface Cat{
  name:string;
  run():void;
}
interface Fish{
  name:string;
  wish():void;
}

const getCacheData = function<T>(key:string):T {
    return (window as any).catch[key];
};
//const Tom = getCacheData<Cat>("lisi");

class Animal {
  public name;
  constructor (name){
    this.name = name;
  }
}
class Dog extends Animal{
  constructor(name){
    super(name);
  }
}
const ani = new Animal("zs");
console.log(ani.name);
ani.name = "ls"
</script>
